package com.warm.pump.module.work.bean.po.gen;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class WorkExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitOffset = -1;

    public WorkExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitOffset(int limitOffset) {
        this.limitOffset=limitOffset;
    }

    public int getLimitOffset() {
        return limitOffset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }



        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "Id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "Id");
            return (Criteria) this;
        }
        public Criteria andWorkNameIsNull() {
            addCriterion("work_name is null");
            return (Criteria) this;
        }

        public Criteria andWorkNameIsNotNull() {
            addCriterion("work_name is not null");
            return (Criteria) this;
        }

        public Criteria andWorkNameEqualTo(String value) {
            addCriterion("work_name =", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotEqualTo(String value) {
            addCriterion("work_name <>", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameGreaterThan(String value) {
            addCriterion("work_name >", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameGreaterThanOrEqualTo(String value) {
            addCriterion("work_name >=", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameLessThan(String value) {
            addCriterion("work_name <", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameLessThanOrEqualTo(String value) {
            addCriterion("work_name <=", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameLike(String value) {
            addCriterion("work_name like", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotLike(String value) {
            addCriterion("work_name not like", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameIn(List<String> values) {
            addCriterion("work_name in", values, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotIn(List<String> values) {
            addCriterion("work_name not in", values, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameBetween(String value1, String value2) {
            addCriterion("work_name between", value1, value2, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotBetween(String value1, String value2) {
            addCriterion("work_name not between", value1, value2, "WorkName");
            return (Criteria) this;
        }
        public Criteria andSubjectIdIsNull() {
            addCriterion("subject_id is null");
            return (Criteria) this;
        }

        public Criteria andSubjectIdIsNotNull() {
            addCriterion("subject_id is not null");
            return (Criteria) this;
        }

        public Criteria andSubjectIdEqualTo(Long value) {
            addCriterion("subject_id =", value, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdNotEqualTo(Long value) {
            addCriterion("subject_id <>", value, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdGreaterThan(Long value) {
            addCriterion("subject_id >", value, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdGreaterThanOrEqualTo(Long value) {
            addCriterion("subject_id >=", value, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdLessThan(Long value) {
            addCriterion("subject_id <", value, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdLessThanOrEqualTo(Long value) {
            addCriterion("subject_id <=", value, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdIn(List<Long> values) {
            addCriterion("subject_id in", values, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdNotIn(List<Long> values) {
            addCriterion("subject_id not in", values, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdBetween(Long value1, Long value2) {
            addCriterion("subject_id between", value1, value2, "SubjectId");
            return (Criteria) this;
        }

        public Criteria andSubjectIdNotBetween(Long value1, Long value2) {
            addCriterion("subject_id not between", value1, value2, "SubjectId");
            return (Criteria) this;
        }
        public Criteria andReferTypeIsNull() {
            addCriterion("refer_type is null");
            return (Criteria) this;
        }

        public Criteria andReferTypeIsNotNull() {
            addCriterion("refer_type is not null");
            return (Criteria) this;
        }

        public Criteria andReferTypeEqualTo(String value) {
            addCriterion("refer_type =", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeNotEqualTo(String value) {
            addCriterion("refer_type <>", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeGreaterThan(String value) {
            addCriterion("refer_type >", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeGreaterThanOrEqualTo(String value) {
            addCriterion("refer_type >=", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeLessThan(String value) {
            addCriterion("refer_type <", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeLessThanOrEqualTo(String value) {
            addCriterion("refer_type <=", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeLike(String value) {
            addCriterion("refer_type like", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeNotLike(String value) {
            addCriterion("refer_type not like", value, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeIn(List<String> values) {
            addCriterion("refer_type in", values, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeNotIn(List<String> values) {
            addCriterion("refer_type not in", values, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeBetween(String value1, String value2) {
            addCriterion("refer_type between", value1, value2, "ReferType");
            return (Criteria) this;
        }

        public Criteria andReferTypeNotBetween(String value1, String value2) {
            addCriterion("refer_type not between", value1, value2, "ReferType");
            return (Criteria) this;
        }
        public Criteria andReferWorkIdIsNull() {
            addCriterion("refer_work_id is null");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdIsNotNull() {
            addCriterion("refer_work_id is not null");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdEqualTo(String value) {
            addCriterion("refer_work_id =", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdNotEqualTo(String value) {
            addCriterion("refer_work_id <>", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdGreaterThan(String value) {
            addCriterion("refer_work_id >", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdGreaterThanOrEqualTo(String value) {
            addCriterion("refer_work_id >=", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdLessThan(String value) {
            addCriterion("refer_work_id <", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdLessThanOrEqualTo(String value) {
            addCriterion("refer_work_id <=", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdLike(String value) {
            addCriterion("refer_work_id like", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdNotLike(String value) {
            addCriterion("refer_work_id not like", value, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdIn(List<String> values) {
            addCriterion("refer_work_id in", values, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdNotIn(List<String> values) {
            addCriterion("refer_work_id not in", values, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdBetween(String value1, String value2) {
            addCriterion("refer_work_id between", value1, value2, "ReferWorkId");
            return (Criteria) this;
        }

        public Criteria andReferWorkIdNotBetween(String value1, String value2) {
            addCriterion("refer_work_id not between", value1, value2, "ReferWorkId");
            return (Criteria) this;
        }
        public Criteria andReferSqlIsNull() {
            addCriterion("refer_sql is null");
            return (Criteria) this;
        }

        public Criteria andReferSqlIsNotNull() {
            addCriterion("refer_sql is not null");
            return (Criteria) this;
        }

        public Criteria andReferSqlEqualTo(String value) {
            addCriterion("refer_sql =", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlNotEqualTo(String value) {
            addCriterion("refer_sql <>", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlGreaterThan(String value) {
            addCriterion("refer_sql >", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlGreaterThanOrEqualTo(String value) {
            addCriterion("refer_sql >=", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlLessThan(String value) {
            addCriterion("refer_sql <", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlLessThanOrEqualTo(String value) {
            addCriterion("refer_sql <=", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlLike(String value) {
            addCriterion("refer_sql like", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlNotLike(String value) {
            addCriterion("refer_sql not like", value, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlIn(List<String> values) {
            addCriterion("refer_sql in", values, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlNotIn(List<String> values) {
            addCriterion("refer_sql not in", values, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlBetween(String value1, String value2) {
            addCriterion("refer_sql between", value1, value2, "ReferSql");
            return (Criteria) this;
        }

        public Criteria andReferSqlNotBetween(String value1, String value2) {
            addCriterion("refer_sql not between", value1, value2, "ReferSql");
            return (Criteria) this;
        }
        public Criteria andMisfireIsNull() {
            addCriterion("misfire is null");
            return (Criteria) this;
        }

        public Criteria andMisfireIsNotNull() {
            addCriterion("misfire is not null");
            return (Criteria) this;
        }

        public Criteria andMisfireEqualTo(String value) {
            addCriterion("misfire =", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireNotEqualTo(String value) {
            addCriterion("misfire <>", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireGreaterThan(String value) {
            addCriterion("misfire >", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireGreaterThanOrEqualTo(String value) {
            addCriterion("misfire >=", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireLessThan(String value) {
            addCriterion("misfire <", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireLessThanOrEqualTo(String value) {
            addCriterion("misfire <=", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireLike(String value) {
            addCriterion("misfire like", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireNotLike(String value) {
            addCriterion("misfire not like", value, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireIn(List<String> values) {
            addCriterion("misfire in", values, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireNotIn(List<String> values) {
            addCriterion("misfire not in", values, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireBetween(String value1, String value2) {
            addCriterion("misfire between", value1, value2, "Misfire");
            return (Criteria) this;
        }

        public Criteria andMisfireNotBetween(String value1, String value2) {
            addCriterion("misfire not between", value1, value2, "Misfire");
            return (Criteria) this;
        }
        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "Status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "Status");
            return (Criteria) this;
        }
        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "Remark");
            return (Criteria) this;
        }
        public Criteria andOrderNumIsNull() {
            addCriterion("order_num is null");
            return (Criteria) this;
        }

        public Criteria andOrderNumIsNotNull() {
            addCriterion("order_num is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNumEqualTo(Integer value) {
            addCriterion("order_num =", value, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotEqualTo(Integer value) {
            addCriterion("order_num <>", value, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumGreaterThan(Integer value) {
            addCriterion("order_num >", value, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_num >=", value, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumLessThan(Integer value) {
            addCriterion("order_num <", value, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumLessThanOrEqualTo(Integer value) {
            addCriterion("order_num <=", value, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumIn(List<Integer> values) {
            addCriterion("order_num in", values, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotIn(List<Integer> values) {
            addCriterion("order_num not in", values, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumBetween(Integer value1, Integer value2) {
            addCriterion("order_num between", value1, value2, "OrderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotBetween(Integer value1, Integer value2) {
            addCriterion("order_num not between", value1, value2, "OrderNum");
            return (Criteria) this;
        }
        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "CreateTime");
            return (Criteria) this;
        }
        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "UpdateTime");
            return (Criteria) this;
        }
        public Criteria andParamsIdIsNull() {
            addCriterion("params_id is null");
            return (Criteria) this;
        }

        public Criteria andParamsIdIsNotNull() {
            addCriterion("params_id is not null");
            return (Criteria) this;
        }

        public Criteria andParamsIdEqualTo(Long value) {
            addCriterion("params_id =", value, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdNotEqualTo(Long value) {
            addCriterion("params_id <>", value, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdGreaterThan(Long value) {
            addCriterion("params_id >", value, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdGreaterThanOrEqualTo(Long value) {
            addCriterion("params_id >=", value, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdLessThan(Long value) {
            addCriterion("params_id <", value, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdLessThanOrEqualTo(Long value) {
            addCriterion("params_id <=", value, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdIn(List<Long> values) {
            addCriterion("params_id in", values, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdNotIn(List<Long> values) {
            addCriterion("params_id not in", values, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdBetween(Long value1, Long value2) {
            addCriterion("params_id between", value1, value2, "ParamsId");
            return (Criteria) this;
        }

        public Criteria andParamsIdNotBetween(Long value1, Long value2) {
            addCriterion("params_id not between", value1, value2, "ParamsId");
            return (Criteria) this;
        }
        public Criteria andLevelNumIsNull() {
            addCriterion("level_num is null");
            return (Criteria) this;
        }

        public Criteria andLevelNumIsNotNull() {
            addCriterion("level_num is not null");
            return (Criteria) this;
        }

        public Criteria andLevelNumEqualTo(Integer value) {
            addCriterion("level_num =", value, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumNotEqualTo(Integer value) {
            addCriterion("level_num <>", value, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumGreaterThan(Integer value) {
            addCriterion("level_num >", value, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("level_num >=", value, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumLessThan(Integer value) {
            addCriterion("level_num <", value, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumLessThanOrEqualTo(Integer value) {
            addCriterion("level_num <=", value, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumIn(List<Integer> values) {
            addCriterion("level_num in", values, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumNotIn(List<Integer> values) {
            addCriterion("level_num not in", values, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumBetween(Integer value1, Integer value2) {
            addCriterion("level_num between", value1, value2, "LevelNum");
            return (Criteria) this;
        }

        public Criteria andLevelNumNotBetween(Integer value1, Integer value2) {
            addCriterion("level_num not between", value1, value2, "LevelNum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
